package cn.test.chap4;

import cn.test.Car;

/**
 * @author oldliu
 * @since 1.0
 */
public class Center {
    String tel;
    String address;

    public Center(String tel, String address) {
        this.tel = tel;
        this.address = address;
    }

    public void check(Car c){
        System.out.println("检测中心检测启动加速刹车");
        c.show();
        c.launch();
        c.accelerate();
        c.brake();
    }
}
